package com.crx.springbootinit.model.vo.comment;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class CommentChildrenVO {
    @ApiModelProperty(value = "评论id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "评论等级")
    private String commentLevel;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "评论点赞数")
    private Long loveCount;

    @ApiModelProperty(value = "关联的帖子Id")
    private Long postId;

    @ApiModelProperty(value = "父评论id")
    private Long parentId;

    @ApiModelProperty(value = "顶级评论id")
    private Long rootCommentId;

    @ApiModelProperty(value = "被评论用户名字")
    private String commentedUserName;

    @ApiModelProperty(value = "是否点赞评论")
    private Boolean isCommentLove;
}
